package com.cskaoyan.module.bean.configmanageBo;

import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;


@NoArgsConstructor
@Data
@AllArgsConstructor
public class AdminConfigMall4PostBO {

    @JsonProperty("market_mall_longitude")
    private String marketMallLongitude;

    @JsonProperty("market_mall_latitude")
    private String marketMallLatitude;

    @JsonProperty("market_mall_address")
    @NotNull
    private String marketMallAddress;

    @Pattern(regexp = "[1-9][0-9]{4,14}")
    @JsonProperty("market_mall_qq")
    private String marketMallQq;

    @JsonProperty("market_mall_phone")
    @Pattern(regexp = "^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$")
    private String marketMallPhone;

    @JsonProperty("market_mall_name")
    @NotNull
    private String marketMallName;
}
